#pragma once

class Sensor
{
public:
	double azimuthDegree;
	double compassZero;
	double relativeAzimuth;

	cv::KalmanFilter azimuthKF;
	cv::Mat azimuthMeasurement;

	void initial();
	
	Sensor(void)
	{
		this->azimuthDegree = 0;
		this->compassZero = 0;
		this->relativeAzimuth = 0;
		this->initial();
	}
	~Sensor(void)
	{

	}

	void run();
	void setCompassZero( double angle = 0 );
	void setRelativeAzimuth();
	double getRelativeAzimuth();
};

